package com.gxgeek.order.repository;

import com.gxgeek.order.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author gaoxing
 * @create 2018-03-21 下午5:55
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster,String> {


    //分页查询 用户订单根据 买家openid
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
    Page<OrderMaster> findAllByOrderByCreateTimeDesc(Pageable pageable);
}
